const config = (_this) => {
  return {
    // 列表筛选
    formData: [
      {
        elType: "input",
        id: "noticeOrderName",
        label: "预警通知单",
        attrs: {
          value: "",
          size: "small",
          clearable: true,
          filterable: true,
          "collapse-tags": true
        }
      },
      {
        elType: "input",
        id: "taskName",
        label: "任务名称",
        attrs: {
          size: "small",
          value: ""
        }
      },
      {
        // elType: "select",
        elType: "input",
        id: "taskContent",
        label: "任务内容",
        attrs: {
          value: "",
          // clearable: true,
          filterable: true,
          "collapse-tags": true
        }
        // options: []
      },
      {
        elType: "select",
        id: "professionCode",
        dic: "dic_zy",
        label: "专业",
        attrs: {
          value: "",
          clearable: true,
          filterable: true,
          "collapse-tags": true
        },
        options: []
      },
      {
        elType: "lsdTree",
        id: "distributeDept",
        name: "distributeTaskId",
        treeRef: "treeRef",
        keyWord: "keyWord",
        commonClick: true,
        label: "派发单位/部门",
        attrs: {
          value: "",
          clearable: true,
          "collapse-tags": true
        },
        options: {
          attrs: {
            value: ""
          }
        },
        treeData: {
          attrs: {
            data: []
          },
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        elType: "lsdTree",
        id: "dutyUnit",
        name: "dutyUnitCode",
        treeRef: "treeRef1",
        keyWord: "keyWord1",
        commonClick: true,
        label: "责任单位/部门",
        attrs: {
          value: "",
          clearable: true,
          "collapse-tags": true
        },
        options: {
          attrs: {
            value: ""
          }
        },
        treeData: {
          attrs: {
            data: []
          },
          props: {
            children: "children",
            label: "orgName",
            value: "id"
          }
        }
      },
      {
        elType: "dateTimePicker",
        id: "publishTime",
        label: "发布时间",
        attrs: {
          value: "",
          size: "small",
          type: "datetimerange",
          "start-placeholder": "开始日期",
          "end-placeholder": "结束日期",
          "value-format": "yyyy-MM-dd HH:mm:ss"
        }
      },
      {
        // elType: "input",
        elType: "select",
        id: "flowCode",
        label: "状态",
        attrs: {
          value: "",
          clearable: true,
          filterable: true,
          "collapse-tags": true
        },
        options: [
          {
            label: "编辑中",
            value: "1"
          },
          {
            label: "待审批",
            value: "2"
          },
          {
            label: "已发布",
            value: "3"
          },
          {
            label: "驳回",
            value: "4"
          },
          {
            label: "已接收",
            value: "5"
          },
          {
            label: "已反馈",
            value: "6"
          },
          {
            label: "未派遣",
            value: "7"
          },
          {
            label: "未派遣-编辑中",
            value: "8"
          },
          {
            label: "派遣待审批",
            value: "9"
          },
          {
            label: "已派遣",
            value: "10"
          },
          {
            label: "派遣驳回",
            value: "11"
          }
        ]
      }
    ],
    // 列表表格
    table: {
      isSelectFlag: false,
      compRef: "yjrwlb",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: true,
      loading: false,
      title: "预警任务列表",
      actions: [
        {
          id: "add",
          text: "任务分配",
          type: "primary",
          btnAttr: { size: "small" }
        }
        // {
        //   id: "approval",
        //   text: "审批",
        //   btnAttr: { size: "small" }
        // }
      ],
      tableData: [],
      columns: [
        {
          prop: "taskName",
          label: "任务名称",
          align: "left",
          "min-width": "200px",
          render: (h, { row }) => {
            return (<div>
              {<span style='color:#3561fd;cursor:pointer;text-decoration: underline;' {...{
                on: {
                  click: () => {
                    _this.toTaskDetail(row.id);
                  }
                }
              }}>
                {row.taskName}
              </span>}
            </div>);
          }
        },
        {
          prop: "taskType",
          label: "任务类型",
          align: "center",
          "min-width": "90px"
        },
        {
          prop: "profession",
          label: "专业",
          align: "center",
          "min-width": "60px"
        },
        {
          prop: "taskContent",
          label: "任务内容",
          align: "left",
          "min-width": "340px"
        },
        {
          prop: "distributeDept",
          label: "派发单位/部门",
          align: "center",
          "min-width": "120px"
        },
        {
          prop: "dutyUnit",
          label: "责任单位/部门",
          align: "center",
          "min-width": "120px"
        },
        {
          prop: "publishTime",
          label: "发布时间",
          align: "center",
          "min-width": "180px"
        },
        {
          prop: "noticeOrderName",
          label: "预警通知单",
          align: "left",
          "min-width": "260px",
          render: (h, { row }) => {
            return (<div>
              {<span class='commonTableStyle' style='width: 100%;' {...{
                on: {
                  click: () => {
                    _this.$router.push({
                      path: "/NoticeDetail",
                      query: { id: row.noticeId }
                    });
                  }
                }
              }}>
                {row.noticeOrderName}
              </span>}
            </div>);
          }
        },
        {
          prop: "flowCode",
          label: "状态",
          align: "center",
          "min-width": "60px",
          formatter: (row, column, cellValue, index) => {
            const result = {
              "1": "编辑中",
              "2": "待审批",
              "3": "已发布",
              "4": "驳回",
              "5": "已接收",
              "6": "已反馈",
              "7": "未派遣",
              "8": "编辑中",
              "9": "待审批",
              "10": "已派遣",
              "11": "驳回",
              "12": "已下派",
              "23": "已下派"
            };
            return result[cellValue];
          }
        },
        {
          prop: "cz",
          label: "操作",
          align: "center",
          fixed: "right",
          "min-width": "120px",
          render: (h, scope) => {
            let arr = [];
            const userId = JSON.parse(sessionStorage.getItem("account")).id;
            const tbPower = _this.common.isHasPower("tbr");
            const spPower = _this.common.isHasPower("spr");
            const isCheck = _this.$route.query.isCheck || false;
            if (["1", "4", "8", "21"].includes(scope.row.flowCode) && tbPower && !isCheck) {
              arr = ["编辑", "删除"];
            } else if (["11"].includes(scope.row.flowCode) && tbPower && !isCheck) {
              arr = ["编辑"];
            } else if (scope.row.flowCode === "2" && spPower && scope.row.nextAssignee && scope.row.nextAssignee.includes(userId) && !isCheck) {
              arr = ["审批"];
            } else if (["7"].includes(scope.row.flowCode) && scope.row.nextAssignee && scope.row.nextAssignee.includes(userId) && !isCheck) { // if (["7", "12", "23"].includes(scope.row.flowCode) && tbPower)
              arr = ["任务派遣"];
            } else if (scope.row.flowCode === "9" && scope.row.nextAssignee && scope.row.nextAssignee.includes(userId) && !isCheck) {
              arr = ["审批"];
            } else if (scope.row.ztfeedback === true) {
              arr = ["查看"];
            } else {
              arr = [];
            }
            return (
              <div>
                {
                  arr.map(item => {
                    return (
                      <span style='color:#3561fd;cursor:pointer;margin:0 10px' {...{
                        on: {
                          click: () => {
                            _this.actionHandle(item, scope);
                          }
                        }
                      }}>
                        {item}
                      </span>
                    );
                  })
                }
              </div >
            );
          }
        }
      ],
      tableAttr: {
        // "max-height": "430",
        // height: "430",
        // "max-height": `${window.innerHeight - 500}px`,
        // height: `${window.innerHeight - 500}px`,
        stripe: false,
        border: true,
        fit: true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          border: "1px solid #ccc",
          color: "#333333",
          "font-size": "18px"
        }
      },
      // 分页信息
      paginationAtrrs: {
        total: 0,
        "background": true,
        layout: "prev, pager, next",
        "current-page": 1,
        "page-size": 10
      }
    },
    // 任务分配弹窗信息
    TaskAllocationConfig: {
      formConfig: {
        formData: [
          {
            type: "select",
            label: "预警通知单",
            prop: "noticeId",
            name: "noticeOrderName",
            class: "sjgy",
            lableWidth: "140px",
            option: _this.noticeOption
          }
        ],
        rules: {},
        rules1: {
          noticeId: [
            { required: true, message: "请选择预警通知单", trigger: "blur" }
          ]
        },
        disabled: false
      },
      formConfig1: {
        formData: [
          {
            label: "派发单位/部门",
            type: "input",
            prop: "distributeDept",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "dataPicker",
            label: "要求完成时间",
            prop: "reqCompleteTime",
            class: "half",
            lableWidth: "140px",
            dateType: "datetime",
            pickerOption: {
              disabledDate(time) {
                return time.getTime() + 86400000 < Date.now();
              }
            }
          }
        ],
        rules: {},
        rules1: {
          // distributeDept: [
          //   { required: true, message: "请选择派发单位/部门", trigger: "blur" }
          // ],
          // reqCompleteTime: [
          //   { required: true, message: "请选择要求完成时间", trigger: "blur" }
          // ]
        }
        // disabled: false
      },
      formConfig2: {
        formData: [
          {
            type: "input",
            label: "填报人",
            prop: "fillUser",
            class: "third",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "单位及部门",
            prop: "fillUserDept",
            class: "third",
            lableWidth: "120px",
            isDisabled: true
          },
          {
            type: "input",
            label: "填报时间",
            prop: "fillTime",
            class: "third",
            lableWidth: "140px",
            isDisabled: true
          }
        ]
      },
      formConfig3: {
        formData: [
          {
            type: "input",
            label: "审批意见",
            prop: "approvalOpinion",
            class: "sjgy",
            lableWidth: "140px",
            isDisabled: false
          },
          {
            type: "input",
            label: "审批人",
            prop: "approvalUser",
            class: "third",
            lableWidth: "140px",
            isDisabled: true

          },
          {
            type: "input",
            label: "单位及部门",
            prop: "approvalDept",
            class: "third",
            lableWidth: "120px",
            isDisabled: true
          },
          {
            type: "input",
            label: "审批时间",
            prop: "approvalTime",
            class: "third",
            lableWidth: "140px",
            isDisabled: true
          }
        ]
      },
      // 弹窗表格
      table: {
        isSelectFlag: false,
        compRef: "xzdw",
        isSequenceFlag: true,
        isShowPage: false,
        resetFlag: true,
        autoHeight: true,
        loading: false,
        title: "",
        actions: [],
        tableData: [
          {
            taskName: "",
            dutyUnitCode: "",
            dutyUnit: "",
            taskTypeCode: "",
            taskType: "",
            professionCode: "",
            profession: "",
            taskContent: ""
            // noticeId: _this.$refs.formComponent.form.noticeId
          }
        ],
        columns: [
          {
            prop: "taskName",
            label: "任务名称",
            align: "center",
            "width": "200px",
            tooltip: true,
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  <el-tooltip disabled={!row.taskName} class='item' effect='dark' content={row.taskName} placement='top'>
                    <LsdForm
                      compData={{
                        elType: "input",
                        id: "taskName",
                        label: "任务名称",
                        attrs: {
                          disabled: false,
                          value: "",
                          clearable: true,
                          placeholder: "请输入",
                          min: 0
                        }
                      }}
                      form={row}
                      {...{
                        on: {}
                      }}
                    ></LsdForm>
                  </el-tooltip>
                </div>
              );
            }
          },
          {
            prop: "dutyUnit",
            label: "责任单位/部门",
            align: "center",
            "width": "240px",
            tooltip: true,
            render: (h, scope) => {
              return (
                <div class='peizhi'>
                  <LsdForm
                    compData={{
                      elType: "lsdTree",
                      id: "dutyUnit",
                      name: "dutyUnitCode",
                      keyWord: "keyWord",
                      treeRef: "treeRef",
                      isSplice: true,
                      chooseUnit: true,
                      commonClick: true,
                      label: " ",
                      attrs: {
                        value: "",
                        clearable: true,
                        "collapse-tags": true
                      },
                      options: {
                        attrs: {
                          disabled: true,
                          value: ""
                        }
                      },
                      treeData: {
                        attrs: {
                          data: _this.zrdwOption
                        },
                        props: {
                          children: "children",
                          label: "orgName",
                          value: "id"
                        }
                      }
                    }}
                    form={scope.row}
                    {...{
                      on: {
                        "node-click": (data, item) => { _this.handleClick(data, item, scope); }
                      }
                    }}
                  ></LsdForm>
                </div>
              );
            }
          },
          {
            prop: "profession",
            label: "专业类型",
            align: "center",
            "width": "110px",
            tooltip: true,
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  <el-tooltip disabled={!row.profession} class='item' effect='dark' content={row.profession} placement='top'>
                    <LsdForm
                      compData={{
                        elType: "select",
                        id: "profession",
                        name: "professionCode",
                        label: " ",
                        // dic: "dic_zrbm",
                        attrs: {
                          value: "",
                          clearable: true,
                          filterable: true,
                          disabled: false,
                          multiple: false,
                          "collapse-tags": true
                        },
                        options: _this.zylxOption
                      }}
                      form={row}
                      {...{
                        on: {
                          change(val) {
                            row.professionCode = val;
                            _this.zylxOption.forEach(i => {
                              if (i.value === val) {
                                row.profession = i.label;
                              }
                            });
                            _this.getRwlxList(val);
                          }
                        }
                      }}
                    ></LsdForm>
                  </el-tooltip>
                </div>
              );
            }
          },
          {
            prop: "taskType",
            label: "任务类型",
            align: "center",
            "width": "140px",
            tooltip: true,
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  <el-tooltip disabled={!row.taskType} class='item' effect='dark' content={row.taskType} placement='top'>
                    <LsdForm
                      compData={{
                        elType: "select",
                        id: "taskType",
                        name: "taskTypeCode",
                        label: " ",
                        // dic: "dic_zrbm",
                        attrs: {
                          value: "",
                          clearable: true,
                          filterable: true,
                          disabled: false,
                          multiple: false,
                          "collapse-tags": true
                        },
                        options: _this.rwlxOption
                      }}
                      form={row}
                      {...{
                        on: {
                          change(val) {
                            row.taskTypeCode = val;
                            _this.rwlxOption.forEach(i => {
                              if (i.value === val) {
                                row.taskType = i.label;
                              }
                            });
                          }
                        }
                      }}
                    ></LsdForm>
                  </el-tooltip>
                </div>
              );
            }
          },
          {
            prop: "taskContent",
            label: "任务内容",
            align: "center",
            tooltip: true,
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  <el-tooltip disabled={!row.taskContent} class='item' effect='dark' content={row.taskContent} placement='top'>
                    <LsdForm
                      compData={{
                        elType: "input",
                        id: "taskContent",
                        label: "任务内容",
                        attrs: {
                          disabled: false,
                          autosize: true,
                          value: "",
                          placeholder: "请输入",
                          min: 0,
                          type: "textarea"
                        }
                      }}
                      form={row}
                      {...{
                        on: {}
                      }}
                    ></LsdForm>
                  </el-tooltip>
                </div>
              );
            }
          },
          {
            prop: "cz",
            label: "操作",
            align: "center",
            fixed: "right",
            "width": "80px",
            render: (h, scope) => {
              return (
                <div>
                  {
                    scope.$index === _this.config.TaskAllocationConfig.table.tableData.length - 1 && (
                      <img
                        {...{
                          class: {},
                          style: {
                            width: "16px",
                            height: "16px",
                            "margin-right": "10px"
                          },
                          attrs: {
                            src: require("../../../assets/img/listAdd.png")
                          },
                          on: {
                            click: (scope) => {
                              _this.$nextTick(() => {
                                _this.config.TaskAllocationConfig.table.tableData.push(
                                  {
                                    taskName: "",
                                    dutyUnitCode: "",
                                    taskTypeCode: "",
                                    professionCode: "",
                                    taskContent: ""
                                    // noticeId: _this.$refs.formComponent.form.noticeId
                                  }
                                );
                              });
                            }
                          }
                        }}
                      />
                    )
                  }
                  {
                    _this.config.TaskAllocationConfig.table.tableData.length > 1 &&
                    <img
                      {...{
                        class: {},
                        style: {
                          width: "16px",
                          height: "16px"
                        },
                        attrs: {
                          src: require("../../../assets/img/listReduc.png")
                        },
                        on: {
                          click: () => {
                            _this.config.TaskAllocationConfig.table.tableData.splice(scope.$index, 1);
                          }
                        }
                      }}
                    />
                  }
                </div>
              );
            }
          }
        ],
        columns1: [
          {
            prop: "taskName",
            label: "任务名称",
            align: "left",
            "width": "200px",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  {row.taskName}
                </div>
              );
            }
          },
          {
            prop: "dutyUnit",
            label: "责任单位/部门",
            "width": "140px",
            // "width": "240px",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  {row.dutyUnit}
                </div>
              );
            }
          },
          {
            prop: "profession",
            label: "专业类型",
            align: "center",
            "width": "110px",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  {row.profession}
                </div>
              );
            }
          },
          {
            prop: "taskType",
            label: "任务类型",
            align: "center",
            "width": "140px",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  {row.taskType}
                </div>
              );
            }
          },
          {
            prop: "taskContent",
            label: "任务内容",
            align: "left",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  {row.taskContent}
                </div>
              );
            }
          }
        ],
        columns2: [
          {
            prop: "taskName",
            label: "任务名称",
            align: "center",
            "width": "200px",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  <el-tooltip disabled={!row.taskName} class='item' effect='dark' content={row.taskName} placement='top'>
                    <LsdForm
                      compData={{
                        elType: "input",
                        id: "taskName",
                        label: "任务名称",
                        attrs: {
                          disabled: false,
                          value: "",
                          clearable: true,
                          placeholder: "请输入",
                          min: 0
                        }
                      }}
                      form={row}
                      {...{
                        on: {}
                      }}
                    ></LsdForm>
                  </el-tooltip>
                </div>
              );
            }
          },
          {
            prop: "dutyUnit",
            label: "责任单位/部门",
            align: "center",
            "width": "140px",
            render: (h, scope) => {
              return (
                <div class='peizhi'>
                  <LsdForm
                    compData={{
                      elType: "selectTree",
                      id: "dutyUnit",
                      name: "dutyUnitCode",
                      label: " ",
                      attrs: {
                        value: "",
                        clearable: true,
                        "collapse-tags": true
                      },
                      options: {
                        attrs: {
                          disabled: true,
                          value: ""
                        }
                      },
                      treeData: {
                        attrs: {
                          data: _this.zrdwOption
                        },
                        props: {
                          children: "children",
                          label: "orgName",
                          value: "id"
                        }
                      }
                    }}
                    form={scope.row}
                    {...{
                      on: {
                        "node-click": (data, item) => { _this.handleClick(data, item, scope); }
                      }
                    }}
                  ></LsdForm>
                </div>
              );
            }
          },
          {
            prop: "profession",
            label: "专业类型",
            align: "center",
            "width": "110px",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  <LsdForm
                    compData={{
                      elType: "select",
                      id: "profession",
                      name: "professionCode",
                      label: " ",
                      // dic: "dic_zrbm",
                      attrs: {
                        value: "",
                        clearable: true,
                        filterable: true,
                        disabled: false,
                        multiple: false,
                        "collapse-tags": true
                      },
                      options: _this.zylxOption
                    }}
                    form={row}
                    {...{
                      on: {
                        change(val) {
                          row.professionCode = val;
                          _this.zylxOption.forEach(i => {
                            if (i.value === val) {
                              row.profession = i.label;
                            }
                          });
                          _this.getRwlxList(val);
                        }
                      }
                    }}
                  ></LsdForm>
                </div>
              );
            }
          },
          {
            prop: "taskType",
            label: "任务类型",
            align: "center",
            "width": "140px",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  <LsdForm
                    compData={{
                      elType: "select",
                      id: "taskType",
                      name: "taskTypeCode",
                      label: " ",
                      // dic: "dic_zrbm",
                      attrs: {
                        value: "",
                        clearable: true,
                        filterable: true,
                        disabled: false,
                        multiple: false,
                        "collapse-tags": true
                      },
                      options: _this.rwlxOption
                    }}
                    form={row}
                    {...{
                      on: {
                        change(val) {
                          row.taskTypeCode = val;
                          _this.rwlxOption.forEach(i => {
                            if (i.value === val) {
                              row.taskType = i.label;
                            }
                          });
                        }
                      }
                    }}
                  ></LsdForm>
                </div>
              );
            }
          },
          {
            prop: "taskContent",
            label: "任务内容",
            align: "center",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  <LsdForm
                    compData={{
                      elType: "input",
                      id: "taskContent",
                      label: "任务内容",
                      attrs: {
                        disabled: false,
                        autosize: true,
                        value: "",
                        placeholder: "请输入",
                        min: 0,
                        type: "textarea"
                      }
                    }}
                    form={row}
                    {...{
                      on: {}
                    }}
                  ></LsdForm>
                </div>
              );
            }
          }
        ],
        tableAttr: {
          stripe: false,
          border: true,
          fit: true,
          "show-header": true,
          "highlight-current-row": true,
          "cell-style": {
            "font-size": "16px"
          },
          "header-cell-style": {
            "text-align": "center",
            "background-color": "#B1C8F9",
            // border: "1px solid #ccc",
            "font-size": "16px"
          }
        }
      }
    },
    // 任务派遣弹窗信息
    tasking: {
      formConfig: {
        formData: [
          {
            type: "select",
            label: "预警通知单",
            prop: "noticeId",
            name: "noticeOrderName",
            class: "sjgy",
            lableWidth: "140px",
            option: _this.noticeOption,
            isDisabled: true
          }
        ],
        rules: {
          noticeId: [
            { required: true, message: "请选择预警通知单", trigger: "blur" }
          ]
        },
        disabled: false
      },
      formConfig1: {
        formData: [
          {
            label: "任务名称",
            type: "input",
            prop: "taskName",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "select",
            label: "任务类型",
            prop: "taskTypeCode",
            name: "taskType",
            class: "half",
            lableWidth: "140px",
            option: _this.rwlxOption,
            isDisabled: true
          },
          {
            label: "派发单位/部门",
            type: "input",
            prop: "distributeDept",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            label: "派发人",
            type: "input",
            prop: "approvalUser",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            label: "责任单位/部门",
            type: "select",
            prop: "dutyUnit",
            name: "dutyUnit",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            label: "专业类型",
            type: "select",
            prop: "professionCode",
            name: "profession",
            class: "half",
            lableWidth: "140px",
            option: [],
            isDisabled: true
          },
          {
            type: "dataPicker",
            label: "要求完成时间",
            prop: "reqCompleteTime",
            class: "half",
            lableWidth: "140px",
            dateType: "datetime",
            isDisabled: true
          },
          {
            label: "任务内容",
            type: "textarea",
            prop: "taskContent",
            class: "sjgy",
            lableWidth: "140px",
            isDisabled: true
          }
        ],
        rules: {
          taskName: [
            { required: true, message: "请输入任务名称", trigger: "blur" }
          ],
          taskType: [
            { required: true, message: "请选择任务类型", trigger: "blur" }
          ],
          distributeDept: [
            { required: true, message: "请选择派发单位/部门", trigger: "blur" }
          ],
          fillUser: [
            { required: true, message: "请选择派发人", trigger: "blur" }
          ],
          dutyUnit: [
            { required: true, message: "请选择责任单位/部门", trigger: "blur" }
          ],
          profession: [
            { required: true, message: "请选择专业类型", trigger: "blur" }
          ],
          reqCompleteTime: [
            { required: true, message: "请选择要求完成时间", trigger: "blur" }
          ],
          taskContent: [
            { required: true, message: "请输入任务内容", trigger: "blur" }
          ]
        }
      },
      formConfig2: {
        formData: [
          {
            type: "radio",
            label: "任务处置",
            prop: "subTaskStatus",
            class: "half",
            lableWidth: "140px",
            radio: [
              {
                label: "下派",
                value: "0",
                isDisabled: false
              },
              {
                label: "执行",
                value: "1",
                isDisabled: false
              }
            ]
          }
          // {
          //   type: "select",
          //   label: "派遣单位/部门",
          //   prop: "pqdw",
          //   class: "half",
          //   lableWidth: "130px"
          // },
        ],
        rules: {
          pqdw: [
            { required: true, message: "请选择派遣单位", trigger: "change" }
          ],
          rwcz: [
            { required: true, message: "请选择任务处置", trigger: "change" }
          ]
        },
        disabled: false
      },
      formConfig4: {
        formData: [
          {
            type: "radio",
            label: "任务处置",
            prop: "subTaskStatus",
            class: "half",
            lableWidth: "140px",
            radio: [
              {
                label: "下派",
                value: "0",
                isDisabled: false
              },
              {
                label: "执行",
                value: "1",
                isDisabled: false
              }
            ]
          },
          {
            type: "selectTree",
            label: "接收单位",
            prop: "dispatchDept",
            name: "dispatchDeptId",
            keyWord: "keyWord",
            treeRef: "treeRef",
            commonClick: true,
            clickClose: true,
            title: "接收单位选择",
            choose: false,
            ref: "tree_select1",
            isSplice: true,
            chooseUnit: true,
            class: "half",
            multiple: false,
            lableWidth: "140px",
            option: [],
            treeData: {
              data: [],
              checked: [],
              props: {
                children: "children",
                label: "orgName",
                value: "id"
              }
            }
          }
        ],
        rules: {
          pqdw: [
            { required: true, message: "请选择派遣单位", trigger: "change" }
          ],
          rwcz: [
            { required: true, message: "请选择任务处置", trigger: "change" }
          ],
          xpdw: [
            { required: true, message: "请选择下派单位", trigger: "change" }
          ]
        },
        disabled: false
      },
      formConfig3: {
        formData: [
          {
            type: "input",
            label: "填报人",
            prop: "fillUser",
            class: "third",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "单位及部门",
            prop: "fillUserDept",
            class: "third",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "dataPicker",
            label: "填报时间",
            prop: "fillTime",
            class: "third",
            lableWidth: "140px",
            dateType: "datetime",
            isDisabled: true
          }
        ]
      },
      // 弹窗表格
      table: {
        isSelectFlag: false,
        compRef: "rwpq",
        isSequenceFlag: true,
        isShowPage: false,
        resetFlag: true,
        autoHeight: true,
        loading: false,
        title: "",
        actions: [],
        tableData: [
          {
            subTaskName: "",
            subDutyDeptCode: "",
            subDutyDept: "",
            subTaskType: "",
            subTaskCode: "",
            subReportPeriod: "",
            subReqDoneTime: "",
            isTeam: 0,
            isEquipment: 0,
            isVehicle: 0
          }
        ],
        columns: [
          {
            prop: "subTaskName",
            label: "子任务名称",
            align: "center",
            "width": "200px",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  <el-tooltip disabled={!row.subTaskName} class='item' effect='dark' content={row.subTaskName} placement='top'>
                    <LsdForm
                      compData={{
                        elType: "input",
                        id: "subTaskName",
                        label: " ",
                        attrs: {
                          disabled: false,
                          autosize: true,
                          value: "",
                          clearable: true,
                          placeholder: "请输入",
                          min: 0
                        }
                      }}
                      form={row}
                      {...{
                        on: {}
                      }}
                    ></LsdForm>
                  </el-tooltip>
                </div>
              );
            }
          },
          {
            prop: " subDutyDept",
            label: "责任单位/部门",
            align: "center",
            "width": "140px",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  {<span class='commonTableStyle' style='width: 100%;color:#606266;text-decoration:none'>
                    {row.subDutyDept}
                  </span>}
                </div>
              );
            }
          },
          {
            label: "任务类型",
            prop: "subTaskType",
            "width": "130px",
            align: "center",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  <LsdForm
                    compData={{
                      elType: "select",
                      id: "subTaskType",
                      name: "subTaskCode",
                      label: " ",
                      // dic: "dic_zrbm",
                      attrs: {
                        value: "",
                        clearable: true,
                        filterable: true,
                        disabled: false,
                        multiple: false,
                        "collapse-tags": true
                      },
                      options: _this.rwlxOption
                    }}
                    form={row}
                    {...{
                      on: {
                        change(val) {
                          row.subTaskCode = val;
                          _this.rwlxOption.forEach(i => {
                            if (i.value === val) {
                              row.subTaskType = i.label;
                            }
                          });
                        }
                      }
                    }}
                  ></LsdForm>
                </div>
              );
            }
          },
          {
            prop: "subTaskContent",
            label: "任务内容",
            align: "center",
            render: (h, scope) => {
              const { row } = scope;
              return (
                <div class='peizhi'>
                  {/* <el-input
                    value={row[column.property]}
                    onInput={value => row[column.property] = value}
                    autosize:true
                    type="textarea"
                  /> */}
                  <LsdForm
                    compData={{
                      elType: "input",
                      id: "subTaskContent",
                      label: " ",
                      attrs: {
                        disabled: false,
                        autosize: true,
                        value: "",
                        placeholder: "请输入",
                        min: 0,
                        type: "textarea"
                      }
                    }}
                    form={row}
                    {...{
                      on: {}
                    }}
                  ></LsdForm>
                </div>
              );
            }
          },
          // {
          //   prop: "subReqDoneTime",
          //   label: "要求完成时间",
          //   align: "center",
          //   "width": "160px",
          //   render: (h, { row }) => {
          //     return (
          //       <div class='yqwcsj'>
          //         <LsdForm
          //           compData={{
          //             elType: "dateTimePicker",
          //             id: "subReqDoneTime",
          //             label: " ",
          //             // dic: "dic_zrbm",
          //             attrs: {
          //               value: "",
          //               type: "datetime",
          //               "value-format": "yyyy-MM-dd HH:mm:ss"
          //             }
          //           }}
          //           form={row}
          //           {...{
          //             on: {}
          //           }}
          //         ></LsdForm>
          //       </div>
          //     );
          //   }
          // },
          // {
          //   prop: "subReportPeriod",
          //   label: "上报时间间隔",
          //   align: "center",
          //   "width": "120px",
          //   render: (h, { row }) => {
          //     return (
          //       <div class='peizhi'>
          //         <LsdForm
          //           compData={{
          //             elType: "input",
          //             id: "subReportPeriod",
          //             label: " ",
          //             // dic: "dic_zrbm",
          //             attrs: {
          //               type: "text",
          //               value: "",
          //               clearable: true,
          //               filterable: true,
          //               disabled: false,
          //               multiple: false,
          //               "collapse-tags": true
          //             },
          //             slotsObj: {
          //               slot: "suffix",
          //               text: "小时",
          //               style: {
          //                 display: "flex",
          //                 "align-items": "center",
          //                 height: "100%"
          //               }
          //             }
          //           }}
          //           form={row}
          //           {...{
          //             on: {
          //               focus(val, i) {
          //                 console.log(val, "??????????");
          //                 console.log(i, "??????????iiiiii");
          //               }
          //             }
          //           }}
          //         ></LsdForm>
          //         <template slot='append'>万元</template>
          //       </div>
          //     );
          //   }
          // },
          {
            prop: "planStartTime",
            label: "计划开始时间",
            align: "center",
            "width": "180px",
            render: (h, { row }) => {
              return (
                <div class='yqwcsj'>
                  <LsdForm
                    compData={{
                      elType: "dateTimePicker",
                      id: "planStartTime",
                      label: " ",
                      // dic: "dic_zrbm",
                      attrs: {
                        value: "",
                        type: "datetime",
                        "value-format": "yyyy-MM-dd HH:mm:ss"
                      }
                    }}
                    form={row}
                    {...{
                      on: {}
                    }}
                  ></LsdForm>
                </div>
              );
            }
          },
          {
            prop: "planCompleteTime",
            label: "计划结束时间",
            align: "center",
            "width": "180px",
            render: (h, { row }) => {
              return (
                <div class='yqwcsj'>
                  <LsdForm
                    compData={{
                      elType: "dateTimePicker",
                      id: "planCompleteTime",
                      label: " ",
                      // dic: "dic_zrbm",
                      attrs: {
                        value: "",
                        type: "datetime",
                        "value-format": "yyyy-MM-dd HH:mm:ss"
                      }
                    }}
                    form={row}
                    {...{
                      on: {}
                    }}
                  ></LsdForm>
                </div>
              );
            }
          },
          {
            prop: "needNum",
            label: "需求人数",
            align: "center",
            "width": "110px",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  <LsdForm
                    compData={{
                      elType: "input",
                      id: "needNum",
                      label: " ",
                      // dic: "dic_zrbm",
                      attrs: {
                        type: "text",
                        value: "",
                        clearable: true,
                        filterable: true,
                        disabled: false,
                        multiple: false,
                        "collapse-tags": true
                      },
                      slotsObj: {
                        slot: "suffix",
                        text: "人",
                        style: {
                          display: "flex",
                          "align-items": "center",
                          height: "100%"
                        }
                      }
                    }}
                    form={row}
                    {...{
                      on: {
                        focus(val, i) {
                          console.log(val, "??????????");
                          console.log(i, "??????????iiiiii");
                        }
                      }
                    }}
                  ></LsdForm>
                  <template slot='append'>万元</template>
                </div>
              );
            }
          },
          {
            prop: "xz",
            label: "选择",
            align: "center",
            width: "330px",
            render: (h, scope) => {
              const arr = ["队伍", "装备", "车辆"];
              if (scope.row.isTeam === 1) {
                arr.splice(0, 1, "队伍已选择");
              }
              if (scope.row.isEquipment === 1) {
                arr.splice(1, 1, "装备已选择");
              }
              if (scope.row.isVehicle === 1) {
                arr.splice(2, 1, "车辆已选择");
              }
              return (
                <div>
                  {
                    arr.map(item => {
                      return (
                        <span style='color:#3561fd;cursor:pointer;text-decoration: underline;margin:0 3px' {...{
                          on: {
                            click: () => {
                              _this.actionHandle(item, scope);
                            }
                          }
                        }}>
                          {item}
                        </span>
                      );
                    })
                  }
                </div >
              );
            }
          },
          {
            prop: "cz",
            label: "操作",
            align: "center",
            fixed: "right",
            "width": "80px",
            render: (h, scope) => {
              return (
                <div>
                  {
                    scope.$index === _this.config.tasking.table.tableData.length - 1 && (
                      <img
                        {...{
                          class: {},
                          style: {
                            width: "16px",
                            height: "16px",
                            "margin-right": "10px"
                          },
                          attrs: {
                            src: require("../../../assets/img/listAdd.png")
                          },
                          on: {
                            click: (scope) => {
                              // _this.$nextTick(() => {
                              _this.config.tasking.table.tableData.push(
                                {
                                  subTaskName: "",
                                  subDutyDeptCode: JSON.parse(sessionStorage.getItem("org")).orgId,
                                  subDutyDept: sessionStorage.getItem("dwbmName"),
                                  subTaskTypesubTaskType: "",
                                  subTaskCode: _this.$refs.formTasking1.form.taskTypeCode,
                                  subTaskType: _this.$refs.formTasking1.form.taskType,
                                  subReportPeriod: "",
                                  subReqDoneTime: _this.$refs.formTasking1.form.reqCompleteTime,
                                  isTeam: 0,
                                  isEquipment: 0,
                                  isVehicle: 0
                                }
                              );
                              // _this.config.tasking.table.tableData = Object.assign({}, _this.config.tasking.table.tableData)
                              _this.$set(_this.config.tasking.table, "tableData", _this.config.tasking.table.tableData);
                              // })
                            }
                          }
                        }}
                      />
                    )
                  }
                  {
                    _this.config.tasking.table.tableData.length > 1 &&
                    <img
                      {...{
                        class: {},
                        style: {
                          width: "16px",
                          height: "16px"
                        },
                        attrs: {
                          src: require("../../../assets/img/listReduc.png")
                        },
                        on: {
                          click: () => {
                            _this.config.tasking.table.tableData.splice(scope.$index, 1);
                          }
                        }
                      }}
                    />
                  }
                </div>
              );
            }
          }
        ],
        columns1: [
          {
            prop: "subTaskName",
            label: "子任务名称",
            align: "center",
            "width": "200px",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  <el-tooltip class='item' effect='dark' content={row.subTaskName} placement='top'>
                    <LsdForm
                      compData={{
                        elType: "input",
                        id: "subTaskName",
                        label: " ",
                        attrs: {
                          disabled: false,
                          autosize: true,
                          value: "",
                          placeholder: "请输入",
                          min: 0
                        }
                      }}
                      form={row}
                      {...{
                        on: {}
                      }}
                    ></LsdForm>
                  </el-tooltip>
                </div>
              );
            }
          },
          {
            prop: " subDutyDept",
            label: "责任单位/部门",
            align: "center",
            "width": "130px",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  <LsdForm
                    compData={{
                      elType: "selectTree",
                      id: "subDutyDept",
                      name: "subDutyDeptCode",
                      label: " ",
                      // dic: "dic_zrbm",
                      attrs: {
                        value: "",
                        clearable: true,
                        "collapse-tags": true
                      },
                      options: {
                        attrs: {
                          value: ""
                        }
                      },
                      treeData: {
                        attrs: {
                          data: _this.zrdwOption
                        },
                        props: {
                          children: "children",
                          label: "orgName",
                          value: "id"
                        }
                      }
                    }}
                    form={row}
                    {...{
                      on: {
                        "node-click": (data, item) => {
                          console.log(_this, "-------this");
                          row.subDutyDept = data.orgName;
                          row.subDutyDeptCode = data.id;
                        }
                      }
                    }}
                  ></LsdForm>
                </div>
              );
            }
          },
          {
            label: "任务类型",
            prop: "subTaskType",
            "width": "130px",
            align: "center",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  <LsdForm
                    compData={{
                      elType: "select",
                      id: "subTaskType",
                      name: "subTaskCode",
                      label: " ",
                      // dic: "dic_zrbm",
                      attrs: {
                        value: "",
                        clearable: true,
                        filterable: true,
                        disabled: false,
                        multiple: false,
                        "collapse-tags": true
                      },
                      options: _this.rwlxOption
                    }}
                    form={row}
                    {...{
                      on: {
                        change(val) {
                          row.subTaskCode = val;
                          _this.rwlxOption.forEach(i => {
                            if (i.value === val) {
                              row.subTaskType = i.label;
                            }
                          });
                        }
                      }
                    }}
                  ></LsdForm>
                </div>
              );
            }
          },
          {
            prop: "subTaskContent",
            label: "任务内容",
            align: "center",
            render: (h, scope) => {
              const { row } = scope;
              return (
                <div class='peizhi'>
                  {/* <el-input
                    value={row[column.property]}
                    onInput={value => row[column.property] = value}
                    autosize:true
                    type="textarea"
                  /> */}
                  <LsdForm
                    compData={{
                      elType: "input",
                      id: "subTaskContent",
                      label: " ",
                      attrs: {
                        disabled: false,
                        autosize: true,
                        value: "",
                        placeholder: "请输入",
                        min: 0,
                        type: "textarea"
                      }
                    }}
                    form={row}
                    {...{
                      on: {}
                    }}
                  ></LsdForm>
                </div>
              );
            }
          },
          // {
          //   prop: "subReqDoneTime",
          //   label: "要求完成时间",
          //   align: "center",
          //   "width": "160px",
          //   render: (h, { row }) => {
          //     return (
          //       <div class='yqwcsj'>
          //         <LsdForm
          //           compData={{
          //             elType: "dateTimePicker",
          //             id: "subReqDoneTime",
          //             label: " ",
          //             // dic: "dic_zrbm",
          //             attrs: {
          //               value: "",
          //               type: "datetime",
          //               "value-format": "yyyy-MM-dd HH:mm:ss"
          //             }
          //           }}
          //           form={row}
          //           {...{
          //             on: {}
          //           }}
          //         ></LsdForm>
          //       </div>
          //     );
          //   }
          // },
          // {
          //   prop: "subReportPeriod",
          //   label: "上报时间间隔",
          //   align: "center",
          //   "width": "120px",
          //   render: (h, { row }) => {
          //     return (
          //       <div class='peizhi'>
          //         <LsdForm
          //           compData={{
          //             elType: "input",
          //             id: "subReportPeriod",
          //             label: " ",
          //             // dic: "dic_zrbm",
          //             attrs: {
          //               type: "text",
          //               value: "",
          //               clearable: true,
          //               filterable: true,
          //               disabled: false,
          //               multiple: false,
          //               "collapse-tags": true
          //             },
          //             slotsObj: {
          //               slot: "suffix",
          //               text: "小时",
          //               style: {
          //                 display: "flex",
          //                 "align-items": "center",
          //                 height: "100%"
          //               }
          //             }
          //           }}
          //           form={row}
          //           {...{
          //             on: {
          //               focus(val, i) {
          //                 console.log(val, "??????????");
          //                 console.log(i, "??????????iiiiii");
          //               }
          //             }
          //           }}
          //         ></LsdForm>
          //         <template slot='append'>万元</template>
          //       </div>
          //     );
          //   }
          // },
          {
            prop: "planStartTime",
            label: "计划开始时间",
            align: "center",
            "width": "180px",
            render: (h, { row }) => {
              return (
                <div class='yqwcsj'>
                  <LsdForm
                    compData={{
                      elType: "dateTimePicker",
                      id: "planStartTime",
                      label: " ",
                      // dic: "dic_zrbm",
                      attrs: {
                        value: "",
                        type: "datetime",
                        "value-format": "yyyy-MM-dd HH:mm:ss"
                      }
                    }}
                    form={row}
                    {...{
                      on: {}
                    }}
                  ></LsdForm>
                </div>
              );
            }
          },
          {
            prop: "planCompleteTime",
            label: "计划结束时间",
            align: "center",
            "width": "180px",
            render: (h, { row }) => {
              return (
                <div class='yqwcsj'>
                  <LsdForm
                    compData={{
                      elType: "dateTimePicker",
                      id: "planCompleteTime",
                      label: " ",
                      // dic: "dic_zrbm",
                      attrs: {
                        value: "",
                        type: "datetime",
                        "value-format": "yyyy-MM-dd HH:mm:ss"
                      }
                    }}
                    form={row}
                    {...{
                      on: {}
                    }}
                  ></LsdForm>
                </div>
              );
            }
          },
          {
            prop: "needNum",
            label: "需求人数",
            align: "center",
            "width": "110px",
            render: (h, { row }) => {
              return (
                <div class='peizhi'>
                  <LsdForm
                    compData={{
                      elType: "input",
                      id: "needNum",
                      label: " ",
                      // dic: "dic_zrbm",
                      attrs: {
                        type: "text",
                        value: "",
                        clearable: true,
                        filterable: true,
                        disabled: false,
                        multiple: false,
                        "collapse-tags": true
                      },
                      slotsObj: {
                        slot: "suffix",
                        text: "人",
                        style: {
                          display: "flex",
                          "align-items": "center",
                          height: "100%"
                        }
                      }
                    }}
                    form={row}
                    {...{
                      on: {
                        focus(val, i) {
                          console.log(val, "??????????");
                          console.log(i, "??????????iiiiii");
                        }
                      }
                    }}
                  ></LsdForm>
                  <template slot='append'>万元</template>
                </div>
              );
            }
          },
          {
            prop: "xz",
            label: "选择",
            align: "center",
            width: "330px",
            render: (h, scope) => {
              const arr = ["队伍", "装备", "车辆"];
              if (scope.row.isTeam === 1) {
                arr.splice(0, 1, "队伍已选择");
              }
              if (scope.row.isEquipment === 1) {
                arr.splice(1, 1, "装备已选择");
              }
              if (scope.row.isVehicle === 1) {
                arr.splice(2, 1, "车辆已选择");
              }
              return (
                <div>
                  {
                    arr.map(item => {
                      return (
                        <span style='color:#3561fd;cursor:pointer;text-decoration: underline;margin:0 3px' {...{
                          on: {
                            click: () => {
                              _this.actionHandle(item, scope);
                            }
                          }
                        }}>
                          {item}
                        </span>
                      );
                    })
                  }
                </div >
              );
            }
          }
        ],
        tableAttr: {
          stripe: false,
          border: true,
          fit: true,
          "show-header": true,
          "highlight-current-row": true,
          "cell-style": {
            "font-size": "16px"
          },
          "header-cell-style": {
            "text-align": "center",
            "background-color": "#B1C8F9",
            border: "1px solid #ccc",
            "font-size": "16px"
          }
        }
      }
    },
    // 子任务弹窗信息
    childTasking: {
      formConfig: {
        formData: [
          {
            type: "select",
            label: "预警通知单",
            prop: "noticeId",
            name: "noticeOrderName",
            class: "sjgy",
            lableWidth: "140px",
            option: _this.noticeOption,
            isDisabled: true
          }
        ]
        // rules: {
        //   noticeId: [
        //     { required: true, message: "请选择预警通知单", trigger: "blur" }
        //   ]
        // }
      },
      formConfig1: {
        formData: [
          {
            label: "任务名称",
            type: "input",
            prop: "taskName",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "select",
            label: "任务类型",
            prop: "taskTypeCode",
            name: "taskType",
            class: "half",
            lableWidth: "140px",
            option: _this.rwlxOption,
            isDisabled: true
          },
          {
            label: "派发单位/部门",
            type: "input",
            prop: "distributeDept",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            label: "派发人",
            type: "input",
            prop: "fillUser",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            label: "责任单位/部门",
            type: "input",
            prop: "dutyUnit",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          // {
          //   label: "责任单位/部门",
          //   type: "select",
          //   prop: "dutyUnit",
          //   class: "half",
          //   lableWidth: "130px"
          // },
          {
            label: "专业类型",
            type: "input",
            prop: "profession",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          // {
          //   label: "专业类型",
          //   type: "select",
          //   prop: "profession",
          //   name: "professionCode",
          //   class: "half",
          //   lableWidth: "130px",
          //   option: []
          // },
          {
            type: "dataPicker",
            label: "要求完成时间",
            prop: "reqCompleteTime",
            class: "half",
            lableWidth: "140px",
            dateType: "datetime",
            isDisabled: true
          },
          {
            label: "任务内容",
            type: "textarea",
            prop: "taskContent",
            class: "sjgy",
            lableWidth: "140px",
            isDisabled: true
          }
        ]
        // rules: {
        //   taskName: [
        //     { required: true, message: "请输入任务名称", trigger: "blur" }
        //   ],
        //   taskType: [
        //     { required: true, message: "请选择任务类型", trigger: "blur" }
        //   ],
        //   distributeDept: [
        //     { required: true, message: "请选择派发单位/部门", trigger: "blur" }
        //   ],
        //   fillUser: [
        //     { required: true, message: "请选择派发人", trigger: "blur" }
        //   ],
        //   dutyUnit: [
        //     { required: true, message: "请选择责任单位/部门", trigger: "blur" }
        //   ],
        //   profession: [
        //     { required: true, message: "请选择专业类型", trigger: "blur" }
        //   ],
        //   reqCompleteTime: [
        //     { required: true, message: "请选择要求完成时间", trigger: "blur" }
        //   ],
        //   taskContent: [
        //     { required: true, message: "请输入任务内容", trigger: "blur" }
        //   ]
        // }
      },
      formConfig2: {
        formData: [
          {
            type: "input",
            label: "子任务名称",
            prop: "subTaskName",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "任务类型",
            prop: "subTaskType",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "责任单位/部门",
            prop: "subDutyDept",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          // {
          //   type: "input",
          //   label: "上报时间周期",
          //   prop: "subReportPeriod",
          //   class: "half",
          //   lableWidth: "140px",
          //   isDisabled: true
          // }
          {
            type: "input",
            label: "计划开始时间",
            prop: "planStartTime",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "计划结束时间",
            prop: "planCompleteTime",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "需求人数",
            prop: "needNum",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          }
        ]
      },
      formConfig3: {
        formData: [
          {
            type: "input",
            label: "填报人",
            prop: "fillUser",
            class: "third",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "单位及部门",
            prop: "fillUserDept",
            class: "third",
            lableWidth: "120px",
            isDisabled: true
          },
          {
            type: "dataPicker",
            label: "填报时间",
            prop: "fillTime",
            class: "third",
            lableWidth: "140px",
            dateType: "datetime",
            isDisabled: true
          }
        ]
      },
      formConfig4: {
        formData: [
          {
            type: "input",
            label: "审批意见",
            prop: "approvalOpinion",
            class: "sjgy",
            lableWidth: "140px",
            isDisabled: false
          },
          {
            type: "input",
            label: "审批人",
            prop: "approvalUser",
            class: "third",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "单位及部门",
            prop: "approvalDept",
            class: "third",
            lableWidth: "120px",
            isDisabled: true
          },
          {
            type: "dataPicker",
            label: "审批时间",
            prop: "approvalTime",
            class: "third",
            lableWidth: "140px",
            dateType: "datetime",
            isDisabled: true
          }
        ]
      },
      // 已选人员表格
      table: {
        isSelectFlag: false,
        compRef: "xzdw",
        isSequenceFlag: true,
        isShowPage: false,
        resetFlag: true,
        autoHeight: true,
        loading: false,
        title: "",
        actions: [],
        tableData: [],
        columns: [
          {
            prop: "accessUnit",
            label: "所属单位",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "name",
            label: "姓名",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "contact",
            label: "联系方式",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "memberType",
            label: "人员类型",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "memberMajor",
            label: "人员专业",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "memberAbility",
            label: "特种作业能力",
            align: "center",
            "min-width": "120px"
          }
        ],
        tableAttr: {
          stripe: false,
          border: true,
          fit: true,
          "show-header": true,
          "highlight-current-row": true,
          "cell-style": {
            "font-size": "16px"
          },
          "header-cell-style": {
            "text-align": "center",
            "background-color": "#B1C8F9",
            border: "1px solid #ccc",
            "font-size": "16px"
          }
        }
      },
      // 已选车辆表格
      table1: {
        isSelectFlag: false,
        compRef: "xzdw",
        isSequenceFlag: true,
        isShowPage: false,
        resetFlag: true,
        autoHeight: true,
        loading: false,
        title: "",
        actions: [],
        tableData: [],
        columns: [
          {
            prop: "unit",
            label: "所属单位",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "vehicleProperties",
            label: "车辆性质",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "vehicleUsage",
            label: "车辆用途",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "vehicleType",
            label: "车辆类型",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "vehicleNum",
            label: "车牌号",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "driver",
            label: "驾驶员",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "contact",
            label: "联系方式",
            align: "center",
            "min-width": "120px"
          }
        ],
        tableAttr: {
          stripe: false,
          border: true,
          fit: true,
          "show-header": true,
          "highlight-current-row": true,
          "cell-style": {
            "font-size": "16px"
          },
          "header-cell-style": {
            "text-align": "center",
            "background-color": "#B1C8F9",
            border: "1px solid #ccc",
            "font-size": "16px"
          }
        }
      },
      // 已选装备表格
      table2: {
        isSelectFlag: false,
        compRef: "xzdw",
        isSequenceFlag: true,
        isShowPage: false,
        resetFlag: true,
        autoHeight: true,
        loading: false,
        title: "",
        actions: [],
        tableData: [],
        columns: [
          {
            prop: "largeCategory",
            label: "装备大类",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "middleCategory",
            label: "装备中类",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "equipName",
            label: "装备名称",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "unit",
            label: "所属单位",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "storageLocation",
            label: "存放地点",
            align: "left",
            "min-width": "120px"
          },
          {
            prop: "preserver",
            label: "保管人",
            align: "center",
            "min-width": "120px"
          },
          {
            prop: "contactWay",
            label: "联系方式",
            align: "center",
            "min-width": "120px"
          }
          // {
          //   prop: "count",
          //   label: "已选",
          //   align: "center",
          //   "min-width": "120px"
          // }
        ],
        tableAttr: {
          stripe: false,
          border: true,
          fit: true,
          "show-header": true,
          "highlight-current-row": true,
          "cell-style": {
            "font-size": "16px"
          },
          "header-cell-style": {
            "text-align": "center",
            "background-color": "#B1C8F9",
            border: "1px solid #ccc",
            "font-size": "16px"
          }
        }
      }
    },
    // 队伍选择
    ChooseFormConfig: {
      formData: [
        {
          type: "input",
          label: "队伍名称",
          prop: "teamName",
          class: "third",
          lableWidth: "100px"
        },
        {
          type: "select",
          label: "队伍专业",
          prop: "teamMajor",
          dic: "teamMajor",
          class: "third",
          lableWidth: "100px",
          option: []
        },
        {
          type: "select",
          label: "队伍类型",
          prop: "teamTypeName",
          dic: "teamType",
          class: "third",
          lableWidth: "100px",
          option: []
        }
      ]
    },
    ChooseTableConfig: {
      isSelectFlag: true,
      compRef: "teamTabel",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: false,
      autoHeight: true,
      loading: false,
      title: "",
      tableData: [],
      multiple: false,
      // selectColumnAttr: {
      //   "reserve-selection": true
      // },
      columns: [
        {
          prop: "unit",
          label: "所属单位",
          align: "center"
        },
        {
          prop: "teamName",
          label: "队伍名称",
          align: "center"
        },
        {
          prop: "teamTypeName",
          label: "队伍类型",
          align: "center"
        },
        {
          prop: "teamMajor",
          label: "队伍专业",
          align: "center",
          width: "90px"
        },
        {
          prop: "occupation",
          label: "队伍状态",
          align: "center",
          width: "90px",
          formatter: (row, column, cellValue, index) => {
            if (cellValue === 0) {
              return "待命";
            } else {
              return "已调配";
            }
          }
        },
        {
          prop: "captainName",
          label: "队长姓名",
          align: "center",
          width: "90px"
        },
        {
          prop: "contactWay",
          label: "联系方式",
          align: "center"
        },
        {
          prop: "standbyStaff",
          label: "待命人员",
          align: "center",
          width: "90px"
        }
      ],
      tableAttr: {
        "row-key": getRowKeys,
        // "max-height": "585px",
        // "height": "400px",
        "stripe": false,
        "border": true,
        "fit": true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          "border": "1px solid #ccc",
          "font-size": "16px"
        }
      },
      // 分页信息
      paginationAtrrs: {
        total: 0,
        "background": true,
        layout: "prev, pager, next",
        "current-page": 1,
        "page-size": 10
      }
    },
    // 队员选择
    PersonnelFormConfig: {
      formData: [
        {
          type: "input",
          label: "姓名",
          prop: "name",
          class: "half",
          lableWidth: "140px"
        },
        {
          type: "select",
          label: "人员类型",
          prop: "memberType",
          class: "half",
          lableWidth: "140px",
          option: [
            {
              label: "主业",
              value: "主业"
            },
            {
              label: "副业",
              value: "副业"
            }
          ]
        },
        {
          type: "select",
          label: "人员专业",
          prop: "memberMajor",
          dic: "person",
          class: "half",
          lableWidth: "140px",
          option: []
        },
        {
          type: "select",
          label: "特种作业能力",
          prop: "memberAbility",
          dic: "teamSpecialAbility",
          class: "half",
          lableWidth: "140px",
          option: []
        }
      ]
    },
    PersonnelTableConfig: {
      isSelectFlag: true,
      compRef: "playerTabel",
      isSequenceFlag: true,
      isShowPage: true,
      autoHeight: true,
      resetFlag: false,
      loading: false,
      title: "",
      selectColumnAttr: {
        // "reserve-selection": true,
        "selectable": (row) => {
          return row.occupation === 1;
        }
      },
      tableData: [],
      columns: [
        {
          prop: "accessUnit",
          label: "所属单位",
          align: "center"
        },
        {
          prop: "name",
          label: "姓名",
          align: "center"
        },
        {
          prop: "contact",
          label: "联系方式",
          align: "center"
        },
        {
          prop: "memberType",
          label: "人员类型",
          align: "center"
        },
        {
          prop: "memberMajor",
          label: "人员专业",
          align: "center"
        },
        {
          prop: "memberAbility",
          label: "特种作业能力",
          align: "center"
        },
        {
          prop: "entryTime",
          label: "入岗时间",
          align: "center"
        }
      ],
      tableAttr: {
        "row-key": getRowKeys,
        "max-height": "550px",
        // "height": "400px",
        "stripe": false,
        "border": true,
        "fit": true,
        "show-header": true,
        "highlight-current-row": false,
        "cell-style": {
          "font-size": "16px"
        },
        "row-style": ({ row, rowIndex }) => _this.checkRowStyle(row, rowIndex),
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          "border": "1px solid #ccc",
          "font-size": "16px"
        }
      },
      // 分页信息
      paginationAtrrs: {
        total: 0,
        "background": true,
        layout: "prev, pager, next",
        "current-page": 1,
        "page-size": 10
      }
    },
    // 装备选择
    EquipmentFormConfig: {
      formData: [
        {
          type: "select",
          label: "装备大类",
          prop: "largeCategory",
          dic: "largeCategory",
          class: "half",
          lableWidth: "120px",
          option: []
        },
        // {
        //   type: "select",
        //   label: "装备中类",
        //   dic: "middle",
        //   prop: "middleCategory",
        //   class: "half",
        //   lableWidth: "120px",
        //   option: []
        // },
        {
          type: "input",
          label: "装备名称",
          prop: "equipName",
          class: "half",
          lableWidth: "120px"
        },
        {
          type: "selectTree",
          label: "所属单位",
          prop: "unit",
          keyWord: "keyWord5",
          treeRef: "treeRef5",
          commonClick: true,
          clickClose: true,
          title: "所属单位选择",
          choose: false,
          ref: "tree_select5",
          class: "half",
          multiple: false,
          lableWidth: "120px",
          option: [],
          treeData: {
            data: [],
            checked: [],
            props: {
              children: "children",
              label: "orgName",
              value: "id"
            }
          }
        }
      ]
    },
    EquipmentTableConfig: {
      isSelectFlag: true,
      compRef: "EquipmentTabel",
      isSequenceFlag: true,
      isShowPage: true,
      autoHeight: true,
      resetFlag: false,
      loading: false,
      title: "",
      selectColumnAttr: {
        "reserve-selection": true
      },
      tableData: [],
      columns: [
        {
          prop: "largeCategory",
          label: "装备大类",
          align: "center",
          "min-width": "50px"
        },
        // {
        //   prop: "middleCategory",
        //   label: "装备中类",
        //   align: "center",
        //   "min-width": "50px"
        // },
        {
          prop: "equipName",
          label: "装备名称",
          align: "center",
          "min-width": "50px"
        },
        {
          prop: "count",
          label: "库存",
          align: "center",
          "min-width": "30px"
        },
        {
          prop: "unit",
          label: "所属单位",
          align: "center",
          "min-width": "100px"
        },
        {
          prop: "storageLocation",
          label: "存放地点",
          align: "left"
        },
        {
          prop: "preserver",
          label: "保管人",
          align: "center",
          "min-width": "50px"
        },
        {
          prop: "contactWay",
          label: "联系方式",
          align: "center",
          "min-width": "90px"
        }
        // {
        //   prop: "yx",
        //   label: "已选",
        //   align: "center"
        // }
      ],
      tableAttr: {
        "row-key": getRowKeys,
        "max-height": "550px",
        // "height": "400px",
        "stripe": false,
        "border": true,
        "fit": true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          "border": "1px solid #ccc",
          "font-size": "16px"
        }
      },
      // 分页信息
      paginationAtrrs: {
        total: 0,
        "background": true,
        layout: "prev, pager, next",
        "current-page": 1,
        "page-size": 10
      }
    },
    // 车辆选择
    VehicleFormConfig: {
      formData: [
        {
          type: "input",
          label: "所属单位",
          prop: "unit",
          class: "half",
          lableWidth: "140px"
        },
        {
          type: "select",
          label: "车辆性质",
          prop: "vehicleProperties",
          dic: "properties",
          class: "half",
          lableWidth: "140px",
          option: []
        },
        {
          type: "select",
          label: "车辆用途",
          prop: "vehicleUsage",
          dic: "usage",
          class: "half",
          lableWidth: "140px",
          option: []
        },
        {
          type: "select",
          label: "车辆类型",
          prop: "vehicleType",
          dic: "type",
          class: "half",
          lableWidth: "140px",
          option: []
        }
      ]
    },
    VehicleTableConfig: {
      isSelectFlag: true,
      compRef: "vehicleTabel",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: false,
      loading: false,
      title: "",
      tableData: [],
      selectColumnAttr: {
        "reserve-selection": true
      },
      columns: [
        {
          prop: "unit",
          label: "所属单位",
          align: "center"
        },
        {
          prop: "vehicleProperties",
          label: "车辆性质",
          align: "center"
        },
        {
          prop: "vehicleUsage",
          label: "车辆用途",
          align: "center"
        },
        {
          prop: "vehicleType",
          label: "车辆类型",
          align: "center"
        },
        {
          prop: "vehicleNum",
          label: "车牌号",
          align: "center"
        },
        {
          prop: "driver",
          label: "驾驶员",
          align: "center"
        },
        {
          prop: "contact",
          label: "联系方式",
          align: "center"
        }
      ],
      tableAttr: {
        "row-key": getRowKeys,
        "max-height": "550px",
        // "height": "400px",
        "stripe": false,
        "border": true,
        "fit": true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          "border": "1px solid #ccc",
          "font-size": "16px"
        }
      },
      // 分页信息
      paginationAtrrs: {
        total: 0,
        "background": true,
        layout: "prev, pager, next",
        "current-page": 1,
        "page-size": 10
      }
    }
  };
};

const getRowKeys = (row) => {
  return row.id;
};
export default { config };
